using FluentNHibernate.Mapping;

namespace OpenFuse.Cache.Maps
{
	internal class AccountMap : ClassMap<Account>
	{
		internal AccountMap() 
		{
//			TableName = "Accounts";
			
			Id(x => x.RowId).GeneratedBy.Native();
			Map(x => x.CreationTime);
			Map(x => x.Name).WithLengthOf(15);
			Map(x => x.FirstName).WithLengthOf(30);
			Map(x => x.LastName).WithLengthOf(30);
			Map(x => x.Password).WithLengthOf(30);
			Map(x => x.LoginUri).WithLengthOf(512);
		}
	}
}
